//
//  common.swift
//  JHSinaWeibo
//
//  Created by apple on 16/5/21.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

let ScreenWidth = UIScreen.mainScreen().bounds.width
let ScreenHeight = UIScreen.mainScreen().bounds.height

let client_id = "3358861132"
let client_secret = "cf12e2ace4e556585d94d0dd62805b9e"
let redirect_uri = "http://www.itheima.com"

let SwitchRootViewController = "SwitchRootViewController"
//定义通用错误信息
let AppErrorTip = "what?噢，没网。。。"
//定义随机色
func randomColor() ->UIColor{
    let red = CGFloat (random()%256)/255.0
    let blue = CGFloat(random()%256)/255.0
    let green = CGFloat(random()%256)/255.0
    
    return UIColor(red: red,green: green,blue: blue,alpha: 1)

}